package cn.sjlink.appraise.entity;

import cn.sjlink.util.base.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @author tiny
 * @date 2020/4/24 16:35
 * @description
 */

/**
 * 物流
 */
@Table(name = "yoshop_waybill")
public class YoshopWaybill extends BaseModel {
    /**
    * 寄件ID
    */
    @Id
    @Column(name = "waybill_id")
    private Integer waybillId;

    /**
    * 订单编号
    */
    private String orderNo;

    /**
    * 商品编号
    */
    private String goodsNo;

    /**
    * 寄货人id
    */
    private Long userId;

    /**
    * 门店id
    */
    private Long shopId;

    /**
    * 收货人姓名
    */
    private String name;

    /**
    * 收货人手机号
    */
    private String phone;

    /**
    * 收件人手机号
    */
    private String detail;

    /**
    * 类型(10寄卖20退货 30调拨)
    */
    private Integer type;

    /**
    * 物流公司ID
    */
    private Integer expressId;

    /**
    * 物流公司名称
    */
    private String expressCompany;

    /**
    * 物流编号
    */
    private String expressNo;

    /**
    * 类型(0等待收货1已收货 2.已发货)
    */
    private Integer status;

    private Integer wxappId;

    /**
    * 收货人ID
    */
    private Integer receivedStoreUserId;
    //门店收货人id
    private Long receivedClerkId;

    private String receivedMemo;
    /**
    * 分类id
    */
    private Integer categoryId;

    /**
    * 品牌id
    */
    private Integer brandId;

    /**
    * 快递类型(1.上门取件2.自主发货3.送往门店4.送往小栈)
    */
    private Integer waybillType;

    private Integer isBack;//是否返货

    /**
    * 收货时间
    */
    private Date receivedFinishTime;

    private String stackNo;
    private Long latticeId;
    private String pickCode;

    @Transient
    private Integer appraiseGoodsId;

    public Integer getAppraiseGoodsId() {
        return appraiseGoodsId;
    }

    public void setAppraiseGoodsId(Integer appraiseGoodsId) {
        this.appraiseGoodsId = appraiseGoodsId;
    }

    public String getStackNo() {
        return stackNo;
    }

    public void setStackNo(String stackNo) {
        this.stackNo = stackNo;
    }

    public Long getLatticeId() {
        return latticeId;
    }

    public void setLatticeId(Long latticeId) {
        this.latticeId = latticeId;
    }

    public String getPickCode() {
        return pickCode;
    }

    public void setPickCode(String pickCode) {
        this.pickCode = pickCode;
    }

    public Integer getIsBack() {
        return isBack;
    }

    public void setIsBack(Integer isBack) {
        this.isBack = isBack;
    }

    public Long getReceivedClerkId() {
        return receivedClerkId;
    }

    public void setReceivedClerkId(Long receivedClerkId) {
        this.receivedClerkId = receivedClerkId;
    }

    public Integer getWaybillId() {
        return waybillId;
    }

    public void setWaybillId(Integer waybillId) {
        this.waybillId = waybillId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getShopId() {
        return shopId==null?0L:shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name==null?"":name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone==null?"":phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDetail() {
        return detail==null?"":detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getExpressId() {
        return expressId==null?0:expressId;
    }

    public void setExpressId(Integer expressId) {
        this.expressId = expressId;
    }

    public String getExpressCompany() {
        return expressCompany==null?"":expressCompany;
    }

    public void setExpressCompany(String expressCompany) {
        this.expressCompany = expressCompany;
    }

    public String getExpressNo() {
        return expressNo==null?"":expressNo;
    }

    public void setExpressNo(String expressNo) {
        this.expressNo = expressNo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getWxappId() {
        return wxappId==null?10001:wxappId;
    }

    public void setWxappId(Integer wxappId) {
        this.wxappId = wxappId;
    }

    public Integer getReceivedStoreUserId() {
        return receivedStoreUserId==null?0:receivedStoreUserId;
    }

    public void setReceivedStoreUserId(Integer receivedStoreUserId) {
        this.receivedStoreUserId = receivedStoreUserId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getWaybillType() {
        return waybillType;
    }

    public void setWaybillType(Integer waybillType) {
        this.waybillType = waybillType;
    }

    public Date getReceivedFinishTime() {
        return receivedFinishTime;
    }

    public void setReceivedFinishTime(Date receivedFinishTime) {
        this.receivedFinishTime = receivedFinishTime;
    }

    public String getReceivedMemo() {
        return receivedMemo;
    }

    public void setReceivedMemo(String receivedMemo) {
        this.receivedMemo = receivedMemo;
    }
}